package com.weiiew.common.entity.simple;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description 用于记录存储带有数量的物品依赖关系
 * @Author 魏锴
 * @Date 2024/1/28
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dependent implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 物品组id
     */
    @TableId
    private Long id;
    /**
     * 物品id
     */
    private Integer itemId;
    /**
     * 依赖id
     */
    private Integer relativeId;
    /**
     * 数量
     */
    private Integer amount;
}
